# -----install apr-----
# wget -P /opt/ http://mirrors.hust.edu.cn/apache//apr/apr-1.6.2.tar.gz
# tar xzf /opt/apr-1.6.2.tar.gz -C /opt/
# cd /opt/apr-1.6.2/ && sudo ./configure --prefix=/usr/local/apr/
# cd /opt/apr-1.6.2/ && sudo make install 

# -----install apr-util-----
# wget -P /opt/ http://mirror.bit.edu.cn/apache//apr/apr-util-1.6.0.tar.gz
# tar xzf /opt/apr-util-1.6.0.tar.gz -C /opt/
# cd /opt/apr-util-1.6.0/ && sudo ./configure --prefix=/usr/local/apr-util/ --with-apr=/usr/local/apr/
# cd /opt/apr-util-1.6.0/ && sudo make 
# cd /opt/apr-util-1.6.0/ && sudo make install

# -----install pcre-----
# wget -P /opt/ http://ftp.exim.llorien.org/pcre/pcre-8.41.tar.gz
# tar xzf /opt/pcre-8.41.tar.gz -C /opt/
# cd /opt/pcre-8.41/ && sudo ./configure --prefix=/usr/local/pcre/ 
# cd /opt/pcre-8.41/ && sudo make 
# cd /opt/pcre-8.41/ && sudo make install 


# -----install httpd-----
# wget -P /opt/ http://mirrors.hust.edu.cn/apache//httpd/httpd-2.4.27.tar.gz
# tar xzf /opt/httpd-2.4.27.tar.gz -C /opt/
# cd /opt/httpd-2.4.27/ && sudo ./configure  --prefix=/home/apple/apache/ --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre/
# cd /opt/httpd-2.4.27/ && sudo make 
# cd /opt/httpd-2.4.27/ && sudo make install 